package com.asset.dispoal.extension.service.converter;

import com.asset.dispoal.extension.domain.db.entity.RolePermissionDO;
import com.asset.dispoal.extension.domain.dto.RolePermissionDTO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface PermissionConverter {

    PermissionConverter INSTANCE = Mappers.getMapper(PermissionConverter.class);

    List<RolePermissionDTO> roleDOToDTOList(List<RolePermissionDO> rolePermissionDO);

    RolePermissionDO roleDTOToDo(RolePermissionDTO data);
}
